<?php
Route::group(['namespace' => 'Login','middleware' => ['web']],function (){
  Route::get('admin/login','HomeController@index');//登录界面
  Route::get('admin/yzm/code','HomeController@yzmCode');//验证码方法
  Route::post('admin/login/submit','HomeController@login');//表单提交登录
  Route::get('admin/logoff','HomeController@logoff');//注销登录
  Route::post('admin/login/ajax','AdminAjaxController@login');//ajax提交登录验证
  Route::any('admin/update/password/ajax','AdminAjaxController@updatePassword');//修改密码页面
  Route::any('admin/update/password/form','HomeController@updatePasswordForm');//修改密码表单提交

  Route::any('admin/list/ajax','AdminAjaxController@adminList');//管理员列表
  Route::any('admin/valid/adminname','AdminAjaxController@validAdminName');//验证管理员账号
  Route::post('admin/delete','AdminAjaxController@actionAdmin');//操作用户  开启或关闭
  Route::post('admin/create/save','AdminController@createSave');//添加管理员表单提交
  Route::post('admin/edit/save/{id}','AdminController@editSave');//修改管理员表单提交

  Route::any('admin/limit/valid/limiturl','AdminLimitAjaxController@validAdminLimitUrl');//验证管理员权限url
  Route::any('admin/limit/list/ajax','AdminLimitAjaxController@dataList');//管理员权限列表
  Route::post('admin/limit/delete','AdminLimitAjaxController@deleteAdminLimit');//删除
  Route::post('admin/limit/create/save','AdminLimitController@createSave');//添加管理员权限表单提交
  Route::post('admin/limit/edit/save/{id}','AdminLimitController@editSave');//修改管理员权限表单提交
    Route::post('admin/limit/edit/save','AdminLimitController@xgqxSave');//修改管理员权限表单提交

  Route::any('admin/role/valid/rolename','AdminRoleAjaxController@validAdminRoleName');//验证管理员角色名
  Route::any('admin/role/list/ajax','AdminRoleAjaxController@dataList');//管理员角色列表
  Route::post('admin/role/delete','AdminRoleAjaxController@deleteAdminRole');//删除
  Route::post('admin/role/create/save','AdminRoleController@createSave');//添加管理员角色表单提交
  Route::post('admin/role/edit/save/{id}','AdminRoleController@editSave');//修改管理员角色表单提交

  Route::any('admin/service/list/ajax','AdminServiceAjaxController@dataList');              //管理员列表
  Route::any('admin/service/relation/list/ajax','AdminServiceAjaxController@relationList'); //我的客户关联列表
  Route::any('admin/service/relation/user/ajax','AdminServiceAjaxController@relationUser'); //客户设置中已关联列表
  Route::any('admin/service/user/set/{id}','AdminServiceController@userSet');               //管理员分配的客服设置
  Route::post('admin/service/data/save','AdminServiceAjaxController@relationSave');         //管理员分配客服数据保存
  Route::post('admin/service/data/delete','AdminServiceAjaxController@relationDelete');     //管理员分配客服数据删除
  Route::get('admin/my/service/view/{id}','AdminServiceController@view');                   //我的客户查看功能
  
  Route::any('admin/action/list/ajax','AdminActionAjaxController@dataList');//操作日志列表ajax
  Route::post('admin/action/delete','AdminActionAjaxController@deleteData');//操作日志删除
  
  Route::post('admin/config/create/save','ConfigAjaxController@createSave');  //基础配置提交
  Route::post('admin/config/third/save','ConfigAjaxController@thirdSave');  //第三方配置提交
  Route::post('admin/config/inquiry/save','ConfigAjaxController@inquirySave');  //询盘配置提交
  
  Route::any('admin/message/list/ajax', 'MessageAjaxController@dataList');                      //消息列表
  Route::get('admin/message/create', 'MessageController@create');                               //添加消息
  Route::post('admin/message/create/save', 'MessageController@createSave');                     //消息商品保存
  Route::get('admin/message/edit/{id}', 'MessageController@edit');                              //修改消息
  Route::post('admin/message/edit/save/{id}', 'MessageController@editSave');                    //修改消息保存
  Route::get('admin/message/view/{id}', 'MessageController@view');                              //查看消息

     Route::post(' admin/message/massage/info', 'MessageAjaxController@messageInfo');           //弹窗打开消息详情
  Route::post('admin/message/delete', 'MessageAjaxController@deleteData');                      //消息状态变更
  
  Route::any('admin/industry/list/ajax','IndustryAjaxController@dataList');			 //行业列表ajax
  Route::get('admin/industry/data/get','IndustryAjaxController@getData');            //行业数据获取
  Route::post('admin/industry/data/save','IndustryAjaxController@dataSave');         //行业数据保存
  Route::post('admin/industry/data/delete','IndustryAjaxController@deleteData');     //行业数据删除
  
});

Route::group(['namespace' => 'Login','middleware' => ['admin']],function (){
  Route::get('admin/update/password','HomeController@updatePassword');//修改密码页面

  Route::any('admin/list','AdminController@index');//管理员列表
  Route::any('admin/create','AdminController@create');//添加管理员页面
  Route::any('admin/edit/{id}','AdminController@edit');//修改管理员页面
  Route::any('admin/view/{id}','AdminController@view');//查看管理员页面

  Route::any('admin/limit/list','AdminLimitController@index');//管理员权限列表
  Route::any('admin/limit/create','AdminLimitController@create');//添加管理员权限页面
  Route::any('admin/limit/edit/{id}','AdminLimitController@edit');//修改管理员权限页面
  Route::any('admin/limit/view/{id}','AdminLimitController@view');//查看管理员权限页面

  Route::any('admin/role/list','AdminRoleController@index');//管理员角色列表
  Route::any('admin/role/create','AdminRoleController@create');//添加管理员角色页面
  Route::any('admin/role/edit/{id}','AdminRoleController@edit');//修改管理员角色页面
  Route::any('admin/role/view/{id}','AdminRoleController@view');//查看管理员角色页面

  Route::get('admin/action/list','AdminActionController@index');//操作日志列表
  
  Route::get('admin/config/create','ConfigController@create');  //基础配置
  Route::get('admin/config/third','ConfigController@third');  //第三方配置
  Route::get('admin/config/inquiry','ConfigController@inquiry');  //询盘配置
  Route::get('admin/message/list','MessageController@index');   //消息
  Route::get('admin/industry/list','IndustryController@index'); //行业
});

//lzp300---------------------------------------------------------------------------------------------------
Route::group(['namespace'=>'Login','middleware'=>['admin']],function(){
	//个人中心
	Route::any('personal/list/info','PersonalController@listInfo'); //资料修改页面
	//用户监控中心
	Route::any('admin/user/list/info','UserinfoController@info');//主页用户
	Route::any('admin/user/list/index','UserinfoController@index');//视频用户
    Route::get('admin/user/list/live','UserinfoController@live');//直播用户
    Route::get('admin/user/list/advert','UserinfoController@advert');//广告用户
	//达人管理中心
	Route::any('admin/talent/list/index','TalentController@index');//审核列表
	Route::any('admin/talent/list/info','TalentController@info');//达人列表

	//订单管理中心
	Route::any('personal/list/order','OrderController@listOrder');//订单列表
	Route::any('personal/price/list','OrderController@priceList');//金额变动记录
	//视频管理中心
	Route::any('void/list/data','VoidController@index');//视频审核列表
	Route::any('void/list/info','VoidController@info');//视频列表
});
Route::group(['namespace'=>'Login','middleware'=>['web']],function(){
	//个人中心
	Route::post('admin/personal/info/save','PersonalAjaxController@infoSave');  //修改资料提交
	//用户监控中心
	Route::any('admin/user/data/list','UserinfoController@dataList');//监控中心数据拉取
	Route::any('admin/user/data/add','UserinfoController@addinfo');//监控中心数据添加
	Route::any('admin/user/data/aindex','UserinfoController@addindex');//监控中心数据添加
	//达人管理中心
	Route::any('admin/talent/data/list','TalentController@dataList');//达人数据拉取
	Route::post('admin/talent/data/save','TalentController@save');  //审核提交
	Route::post('admin/talent/status/update','TalentController@statusUp');  //状态修改
	Route::post('admin/talent/status/delete','TalentController@stdelete');  //删除操作
	Route::post('admin/talent/data/add','TalentController@addList');  //添加达人
	Route::post('admin/talent/save/num','TalentController@saveNum'); //修改达人数据
	//订单管理中心
	Route::any('admin/personal/data/list','OrderController@dataList'); 	//订单展示列表
	Route::any('admin/personal/info/list','OrderController@infoList'); //金额变动拉取
	Route::get('admin/personal/view/{id}','OrderController@view');    //订单详情
	//视频管理中心
	Route::any('void/list/search','VoidController@search');    //审核列表拉取
	Route::any('void/list/searchAll','VoidController@searchAll');    //视频列表拉取
	Route::post('void/list/save','VoidController@save');    //审核提交0
	
	//配置测试方法提交
	Route::post('upload/commit/qiniu','UploadController@qiniuUpload');
	
	Route::any('api/user/info','VoidController@getUserInfo');//openApi 测试用户数据
});

